//
//  LivePlayURLTableViewCell.m
//  LiveVideoCoreDemo
//
//  Created by 龚丁禧 on 16/4/27.
//  Copyright © 2016年 com.Alex. All rights reserved.
//

#import "LivePlayURLTableViewCell.h"

@interface LivePlayURLTableViewCell () {
    UILabel* _urlLabel;
    UIView*  _singleLine;
}

@end

@implementation LivePlayURLTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _urlLabel = [[UILabel alloc] init];
        [self addSubview: _urlLabel];
    }
    return self;
}

- (void)setUrl:(NSString *)url {
    _url = url;
    CGRect frame = self.frame;
    frame.origin = CGPointMake(0, 0);
    _urlLabel.frame = frame;
    _urlLabel.text = _url;
}
@end
